//
//  LKSwitchRootVcTool.m
//  YLHelper
//
//  Created by she1323 on 2018/5/25.
//  Copyright © 2018年 she1323. All rights reserved.
//

#import "LKSwitchRootVcTool.h"
#import "LKUserInforTool.h"
#import "YLUserViewController.h"
#import "LKTabbarControllerConfig.h"
@implementation LKSwitchRootVcTool


+ (void)switchRootController
{
    if ([LKUserInforTool account]) {
        LKTabbarControllerConfig *tabBarControllerConfig = [[LKTabbarControllerConfig alloc] init];
        [[UIApplication sharedApplication].delegate.window setRootViewController:tabBarControllerConfig.tabBarController];
//        [self switchMineOrRealName];
        
    } else {
        YLUserViewController *logvc = [[YLUserViewController alloc] initWithNibName:@"YLUserViewController" bundle:nil];
        [[UIApplication sharedApplication].delegate.window setRootViewController:logvc];
    }
    
}

@end
